package com.ruoyi.project.jiaqin.supply.service;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.ruoyi.project.jiaqin.supply.domain.Supply;
import com.ruoyi.project.jiaqin.supplycollect.domain.JiaqinSupplyCollect;

import java.util.List;

/**
 * 供应Service接口
 *
 * @author admin
 * @date 2020-12-28
 */
public interface ISupplyService
{
    /**
     * 查询供应
     *
     * @param id 供应ID
     * @return 供应
     */
    public Supply selectSupplyById(String id);
    public JSONObject supplyDeatil(String id,String userId);
    /**
     * 查询供应列表
     *
     * @param supply 供应
     * @return 供应集合
     */
    public List<Supply> selectSupplyList(Supply supply);

    public PageInfo<Supply> getSupply(Integer pageNum, Integer pageSize, Supply supply);

    /**
     * 新增供应
     *
     * @param supply 供应
     * @return 结果
     */
    public int insertSupply(Supply supply);

    /**
     * 修改供应
     *
     * @param supply 供应
     * @return 结果
     */
    public int updateSupply(Supply supply);

    /**
     * 批量删除供应
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSupplyByIds(String ids);

    /**
     * 删除供应信息
     *
     * @param id 供应ID
     * @return 结果
     */
    public int deleteSupplyById(String id);

    public PageInfo<JiaqinSupplyCollect> getFocusOnSupply(Integer pageNum, Integer pageSize, String memberId);

    public PageInfo<Supply> getSupplyListByMemberId(Integer pageNum, Integer pageSize, String memberId);

    public List<Supply> getSupplyListByMemberId2(String memberId);

    public PageInfo<Supply> getFocusOnSupplyByFollowMemberId(Integer pageNum, Integer pageSize, String followMemberId);

    public List<Supply> selectAllSupply();

}
